FERROR
Section: Standard I/O Functions (3S)
Updated: May 14, 1986
Index
Return to Main Contents
NAME
ferror, feof, clearerr, fileno - stream status inquiries
SYNOPSIS
#include <stdio.h>
feof(stream)
FILE
*stream;
ferror(stream)
FILE
*stream
clearerr(stream)
FILE
*stream
fileno(stream)
FILE
*stream;
DESCRIPTION
Feof
returns non-zero when end of file is read on the named input
stream,
otherwise zero.
Unless cleared by
clearerr,
the end-of-file indication lasts until
the stream is closed.
Ferror
returns non-zero when an error has occurred reading or writing
the named
stream,
otherwise zero.
Unless cleared by
clearerr,
the error indication lasts until
the stream is closed.
Clearerr
resets the error and end-of-file indicators on the named
stream.
Fileno
returns the integer file descriptor
associated with the
stream,
see
open(2).
Currently all of these functions
are implemented as macros;
they cannot be redeclared.
SEE ALSO
fopen(3S),
open(2)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 04:51:46 GMT, January 31, 2023